/**
 * 模块列表
 * Created by douxc on 2015/4/21.
 */
define(function (require, exports, module) {
  'use strict';
  module.exports = function (app) {
    app.register.controller('ModuleListCtrl', ['$scope', '$routeParams', 'MHService', '$location',
      function ($scope, $routeParams, MHService, $location) {
        //标题
        $scope.title = '模块列表 ' + $location.search().name;
        var procedureid = $routeParams['flag'].split('?')[0];//流程id
        MHService.globalData(true, {key: 'procedureid', value: procedureid});//流程Id保存
        $scope.URL = MHService.URL.modules + '?gardenid=' + MHService.globalData(false, {key: 'projectId'}) + '&procedureid=' + procedureid;
      }]);
  };
});
